package com.tt.elasticsearch.repositry;

import com.tt.elasticsearch.pojo.Item;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 86176 shkstrat
 * @date 2020/10/31 - 17:27
 */
@Repository
public interface EsRepository1 extends ElasticsearchRepository<Item,String> {

        List<Item> findByPriceBetween(double price1,double price2);

}
